tests: Fix root uid check in test-commit-sign.sh
authorMatthew Barnes <mbarnes@redhat.com>
Tue, 14 Apr 2015 12:53:48 +0000 (08:53 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Tue, 14 Apr 2015 12:53:48 +0000 (08:53 -0400)
tests/test-commit-sign.sh

index 01a3a2ed1eabc9e952d1f74259cd1b177c91ff72..0db0048f1c1526a663d75e19d67a215c25d0cdfd 100755 (executable)
@@ -25,7 +25,7 @@ fi
 
 # Skip the test when non-root as gpgme would not read files owned by
 # another user.
-if test "$(id -i)" != "0"; then
+if test "$(id -u)" != "0"; then
     exit 77
 fi